package org.mnswf.model {
	
	public class Announcement {
		
		[Bindable]
		public var id:int;
		[Bindable]
		public var title:String;
		[Bindable]
		public var description:String;
		[Bindable]
		public var descriptionFormatted:String;
		[Bindable]
		public var dateAdded:Date;
		
		public function Announcement() {
			id = -1;
		}
		
		public function parseTransferObject(transferObject:Object):void {
			id = (transferObject.ID != null) ? transferObject.ID : transferObject.id;
			title = (transferObject.TITLE != null) ? transferObject.TITLE : transferObject.title;
			description = (transferObject.DESCRIPTION != null) ? transferObject.DESCRIPTION : transferObject.description;
			descriptionFormatted = (transferObject.DESCRIPTIONFORMATTED != null) ? transferObject.DESCRIPTIONFORMATTED : transferObject.descriptionFormatted;
			dateAdded = (transferObject.DATEADDED != null) ? transferObject.DATEADDED : transferObject.dateAdded;
		}
		
	}
	
}